package com.demo.dao;

import com.demo.model.Bargain;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Transactional(propagation=Propagation.REQUIRES_NEW,readOnly=false,isolation=Isolation.DEFAULT)
public interface BargainDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(Bargain record);

    int insertSelective(Bargain record);

    Bargain selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bargain record);

    int updateByPrimaryKeyWithBLOBs(Bargain record);

    int updateByPrimaryKey(Bargain record);
}